<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrl_deleteuser.ascx.cs" Inherits="Controls_Admin_ctrl_deleteuser" %>

<asp:PlaceHolder runat="server" ID="plcList">
	<asp:Label runat="server" CssClass="editBoxTitle" ID="lblTitle" />
	
	<br />
	<br />
	
	<asp:TextBox runat="server" ID="searchBox" Text="suche" />
	
	<br />
	<br />
	
	<asp:GridView runat="server" Width="100%" CssClass="gvDefault" ID="gvUser" 
		AutoGenerateColumns="False" 
		GridLines="None" 
		OnPageIndexChanging="gvUser_PageIndexChanging">
		<Columns>
			<asp:BoundField DataField="RegisterDate" HeaderText="<% $Resources:CreationDate %>" >
				<ItemStyle Width="180px" />
				<HeaderStyle CssClass="gvDefaultHeader" />
			</asp:BoundField>
			
			<asp:BoundField DataField="Username" HeaderText="<% $Resources:Username %>" >
				<HeaderStyle CssClass="gvDefaultHeader" />
			</asp:BoundField>
			
			<asp:BoundField DataField="Enabled" HeaderText="<% $Resources:IsActivated %>" >
				<ItemStyle Width="75px" />
				<HeaderStyle CssClass="gvDefaultHeader" />
			</asp:BoundField>
			
			<asp:TemplateField HeaderStyle-CssClass="gvDefaultHeader" HeaderText="<% $Resources:Activate %>">
				<ItemStyle Width="60px" />
				<ItemTemplate>
					<asp:LinkButton ID="btnActivateAccount" runat="server" 
						OnCommand="ActivateAccount" 
						CommandName="ActivateAccount" 
						CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' 
						Text="<% $Resources:Activate %>">
					</asp:LinkButton>
				</ItemTemplate>
			</asp:TemplateField>
			
			<asp:TemplateField HeaderStyle-CssClass="gvDefaultHeader" HeaderText="<% $Resources:Delete %>">
				<ItemStyle Width="50px" />
				<ItemTemplate>
					<asp:LinkButton ID="btnDeleteAccount" runat="server" OnCommand="DeleteAccount" 
						CommandName="DeleteAccount" 
						CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' 
						Text="<% $Resources:Delete %>" 
						OnClientClick="javascript:chk=confirm('Delete this User?');return chk;">
					</asp:LinkButton>
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
</asp:PlaceHolder>
